import { http } from '@/utils/axios/init'

// 发起文件签署
export function sendSignFile(params) {
  return http.request({
    url: `/common/Rest/projectTaskFileSign/signFile`,
    method: 'post',
    params
  })
}

// 撤回重签
export function revokeSign(params) {
  return http.request({
    url: `/common/Rest/projectTaskFileSign/revokeSign`,
    method: 'post',
    params
  })
}

// 查看签署
export function viewSign(params) {
  return http.request({
    url: `/common/Rest/projectTaskFileSign/viewSign`,
    method: 'get',
    params
  })
}

// 查看签署的设置
export function viewSignSet(params) {
  return http.request({
    url: `/ctms/Rest/projectTaskFileSign/viewSignSet`,
    method: 'get',
    params
  })
}

// 催签
export function urgeSign(params) {
  return http.request({
    url: `/common/Rest/projectTaskFileSign/urgeSign`,
    method: 'post',
    params
  })
}

// 完结签署
export function finishSignFlow(params) {
  return http.request({
    url: `/common/Rest/projectTaskFileSign/finishSignFlow`,
    method: 'post',
    params
  })
}

// 发起签署-组织
export function orgSignFile(params) {
  return http.request({
    url: `/common/Rest/projectTaskFileSign/orgSignFile`,
    method: 'post',
    params
  })
}
